<?php
class AppModel extends Model{
	
	public function get_app_by_id($id){
		return M('teamin_app','','')->db(1,'DB_CONFIG1')->where('app_id='.$id)->find();	
	}
	
	public function upt_data($data){
		return M('teamin_app','','')->db(1,'DB_CONFIG1')->where('app_id='.$data['app_id'])->save($data);
	}	
}

?>